//
//  BN_TeacherBrowseCommentListCell.m
//  BabyNow
//
//  Created by 刘泽琛 on 14-6-6.
//  Copyright (c) 2014年 iMobile. All rights reserved.
//

#import "BN_TeacherBrowseCommentListCell.h"

@implementation BN_TeacherBrowseCommentListCell

- (void)awakeFromNib
{
    self.contentLabel.backgroundColor = [UIColor clearColor];
    self.timeLabel.backgroundColor = [UIColor clearColor];
    [self.browseBtn addTarget:self action:@selector(fullTextBrowseAction) forControlEvents:UIControlEventTouchUpInside];
    
    self.contentLabel.numberOfLines = 2;
    self.contentLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:14];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}

- (void)fullTextBrowseAction {
    NSArray *sendArr = @[self.contentLabel.text,self.timeLabel.text];
    [[NSNotificationCenter defaultCenter] postNotificationName:@"KMINE_TEACHER_BROWSE_COMMENT" object:sendArr];
}

- (void)dealloc
{
    [[NSNotificationCenter defaultCenter]removeObserver:self name:@"KMINE_TEACHER_BROWSE_COMMENT" object:self.chilId];
}

@end
